package com.ruirenyun.config.wx;

import lombok.Data;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Component;
import org.springframework.validation.annotation.Validated;

/**
 * wxpay pay properties.
 *
 * @author Deng Ye
 */
@Data
@Validated
@Primary
@Component
@ConditionalOnProperty(
        prefix = "wx",
        name = {"appId"}
)
@ConfigurationProperties(prefix = "wx")
public class WxProperties {
    /**
     * 设置微信小程序的appid
     */
    private String appId;
    private String appSecret;
    private String jumpUrl;


}
